<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="java.util.*,com.opensymphony.xwork2.util.*"%>	

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>Show ShopList</title>
  </head>
  
  <body>
    <table border="1" width="360" align="center">
			<caption>商店列表</caption>
			<%
                //获取封装输出信息的ValueStack对象
                ValueStack vs = (ValueStack)request.getAttribute("struts.valueStack");
                //调用ValueStack的fineValue方法获取Action中的books属性值
                String[] shopList = (String[])vs.findValue("shopList_String");
                //迭代输出全部商店信息
            	for (String shop : shopList) {%>
			<tr>
				<td>店名：</td>
				<td><%=shop%></td>
			</tr>
			<%}%>
		</table>
  </body>
</html>
